//---------------------------------------------------------------------------

#ifndef PV3DH
#define PV3DH

#include <math.h>

class PV3D{
        private:
                float x;
                float y;
                float z;
                int pv;//punto o vector
        public:
                PV3D(float x,float y, float z,int pv){
                        this->x = x;
                        this->y = y;
                        this->z = z;
                        this->pv = pv;
                }

                PV3D(float x,float y, float z){
                        this->x = x;
                        this->y = y;
                        this->z = z;
                        this->pv = 0;
                }

                double getX(){return x;};
                double getY(){return y;};
                double getZ(){return z;};
                int getPV(){return pv;};
                bool isPunto(){return pv == 1;};
                void normalizar();
                PV3D* clona();
                float productoEscalar(PV3D* v);
                PV3D* productoVectorial(PV3D* v);
};

//---------------------------------------------------------------------------
#endif
 